
<div class="padding-25" style="min-height:450px; overflow:auto">

    {empty name='lst'}

        <div class="notdata">暂无账单！</div>

    {else}

        <fieldset class="layui-elem-field" style="font-weight: bolder;">

            <legend>{$order_id}|账单详情</legend>

            <div class="layui-field-box">
                <table class="layui-table" lay-skin="line">
                    <thead>
                        <tr>
                            <th>还款计划ID</th>
                            <th>期数</th>
                            <th>租金</th>
                            <th>违约金</th>
                            <th>其他金额明细</th>
                            <th>应还款日期</th>
                            <th>逾期天数</th>
                            <th>已还金额</th>
                            <th>待还金额</th>
                            <th>支付时间</th>
                            <th>还款状态</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach $lst as $key=>$vo}
                        <tr>
                            <td>{$vo.plan_id}</td>
                            <td>{$vo.plan_index}/12</td>
                            <td>{$vo.plan_amount}</td>
                            <td>{$vo.overdue_fine}</td>
                            <td>
                                {if $vo.other}
                                {foreach $vo.other as $voo}
                                {$voo}<br>
                                {/foreach}
                                {else}
                                --
                                {/if}
                            </td>
                            <td>{$vo.plan_date}</td>
                            <td>{$vo.overdue_day}</td>
                            <td>{$vo.pay}</td>
                            <td>{$vo.shengyu}</td>
                            <td>{$vo.settle_time}</td>
                            <td>{$vo.status_str}</td>
                            <td>
                                {if $user_id == 10000}
                                {if $vo.status == 0 || $vo.status == 2 || ($vo.plan_index == 12 && $order.buy_sts == 0)}
                                <a data-modal="{:url('admin/order/repayment')}?plan_id={$vo.plan_id|default=''}"
                                   class="layui-btn layui-btn-sm layui-btn-xs">创建还款单</a>
                                {/if}
                                {/if}
                            </td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
            </div>

        </fieldset>

    {/empty}

</div>